package scu.maqiang.mesh.test;

public class ReadInpMesh {

	public static void main(String[] args) {
		/*
		String inpMeshFile = "mesh2D\\InpFiles\\Job-1.inp";
		Mesh2DT3Generator mg = new Mesh2DT3Generator();
		Mesh2DT3 mesh = mg.readMesh(inpMeshFile, MeshFormat.Inp);
		mesh.displayNodes();
		mesh.displayElements();
		mesh.displayBoundarys();
		mesh.toTecplot("mesh2D\\InpFiles\\Job-1.dat");
		*/
		
		/*
		String inpMeshFile = "mesh2D\\InpFiles\\Hole.inp";
		Mesh2Q4Generator mg = new Mesh2Q4Generator();
		Mesh2DQ4 mesh = mg.readMesh(inpMeshFile, MeshFormat.Inp);
		mesh.displayNodes();
		mesh.displayElements();
		mesh.displayBoundarys();
		mesh.toTecplot("mesh2D\\InpFiles\\Hole.dat");
		*/
		
		String inpMeshFile = "mesh3D\\InpFiles\\ao.inp";
		//Mesh3H8Generator mg = new Mesh3H8Generator();
		//Mesh3H8 mesh = mg.readMesh(inpMeshFile, MeshFormat.Inp);
		//mesh.displayNodes();
		//mesh.displayElements();
		//mesh.displayBoundarys();
		//mesh.saveMesh(MeshFormat.msh, "mesh3D\\\\InpFiles\\\\ao.msh");
		//mesh.toTecplot("mesh3D\\InpFiles\\ao.dat");
	}

}
